package com.zky.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zky.common.utils.PageUtils;
import com.zky.gulimall.product.entity.SpuInfoDescEntity;
import com.zky.gulimall.product.entity.SpuInfoEntity;
import com.zky.gulimall.product.vo.SpuSaveVo;

import java.util.Map;

/**
 * spu信息
 *
 * @author zky
 * @email 574096634@qq.com
 * @date 2022-08-17 21:28:48
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void save(SpuSaveVo spuSaveVo);

    PageUtils queryPageByContion(Map<String, Object> params);

    //商品上架
    void up(Long spuId);

    /**
     * 根据skuId返回spu信息
     *
     * @param skuId
     * @return
     */
    SpuInfoEntity spuInfoBySkuId(Long skuId);
}

